package cn.xorange.commons.system.mapper.system;

import cn.xorange.commons.data.core.mapper.MBaseMapper;
import cn.xorange.commons.system.entity.system.SysRoleManageOrg;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author : yangjian
 * date : 2025/1/10
 * description :
 */
@Mapper
public interface SysRoleManageOrgMapper extends MBaseMapper<SysRoleManageOrg> {

    @Select("select distinct org_id from sys_role_manage_org where role_id = #{roleId}")
    List<Long> getManageOrgIds(Long roleId);
}
